using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ShopView : ViewBase
{
    Button startGameBtn;
    Text score;
    public override void Init(UIWindow uiBase)
    {
        Debug.Log("GameView Init");
        // startGameBtn = uiBase.transform.Find("StartBtn").GetComponent<Button>();
        // score = uiBase.transform.Find("Score").GetComponent<Text>();
        MessageCenter.Subscribe("Score", (object message) =>
        {
            score.text = message.ToString();
        });
        // startGameBtn.onClick.AddListener(() =>
        // {
        //     (uiBase.control as GameControl).ChangeScene();
        // });
    }

    public override void OnEnable()
    {
        Debug.Log("GameView OnEnable");
    }

    public override void OnDestory()
    {
    }

    public override void Update()
    {
    }
}
